﻿



using System; 
using System.Collections;
using System.Collections.Generic ;
using System.Runtime.Serialization;

namespace ufida.u9.ait.openapi
{
	/// <summary>
	/// 应付单行AITDTO DTO :REST自定义的数据传输类型 
	/// 
	/// </summary>
	[DataContract(Namespace = "ufida.u9.ait.openapi")]
	[Serializable]
	public partial class APBillLineAITDTOData  
	{
		/// <summary>
		/// Default Constructor
		/// </summary>
		public APBillLineAITDTOData()
		{
			initData();
		}
		private void initData()
		{
					TaxPrice=0m; 
					RCCompletMode= 0; 
							PUAmount=0m; 
					NonTaxPrice=0m; 
					LineNum= 0; 
				
		
		
					TotalMoney=0m; 
					Tax=0m; 
					NonTax=0m; 
		
					TUAmount=0m; 
		

			//调用默认值初始化服务进行配置方式初始化
			UFSoft.UBF.Service.DTOService.InitConfigDefault(this);
		}
		[System.Runtime.Serialization.OnDeserializing]
		internal void OnDeserializing(System.Runtime.Serialization.StreamingContext context)
		{
			 initData();
		}
		#region Do SerializeKey -ForDTODataType
		//只为处理集合型EntityKey。原因集合型EntityKey由于使用臫的集合对象，无法实现数据共享.-UBF专用.
		public void DoSerializeKeyList(IDictionary dict)
		{
			if (dict == null ) dict = new Hashtable() ;
			if (dict[this] != null)
				return ;
			dict[this] = this;
	        	        	        	        	        	        			if (this.Item != null) 
			{
				this.Item.DoSerializeKeyList(dict);
			}
	        	        			if (this.DescFlexField != null) 
			{
				this.DescFlexField.DoSerializeKeyList(dict);
			}
	        	        	        	        			if (this.APBillAITDTO != null) 
			{
				this.APBillAITDTO.DoSerializeKeyList(dict);
			}
	        	        			if (this.TaxSchedule != null) 
			{
				this.TaxSchedule.DoSerializeKeyList(dict);
			}

		}
		#endregion 
		/// <summary>
		/// Constructor Full Argument
		/// </summary>
		public APBillLineAITDTOData(  System.Decimal taxPrice  , System.Int16 rCCompletMode  , System.Decimal pUAmount  , System.Decimal nonTaxPrice  , System.Int16 lineNum  , ufida.u9.ait.openapi.CopyOfItemInfoData item  , System.String memo  , ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData descFlexField  , System.Decimal totalMoney  , System.Decimal tax  , System.Decimal nonTax  , ufida.u9.ait.openapi.APBillAITDTOData aPBillAITDTO  , System.Decimal tUAmount  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData taxSchedule  )
		{
			initData();
			this.TaxPrice = taxPrice;
			this.RCCompletMode = rCCompletMode;
			this.PUAmount = pUAmount;
			this.NonTaxPrice = nonTaxPrice;
			this.LineNum = lineNum;
			this.Item = item;
			this.Memo = memo;
			this.DescFlexField = descFlexField;
			this.TotalMoney = totalMoney;
			this.Tax = tax;
			this.NonTax = nonTax;
			this.APBillAITDTO = aPBillAITDTO;
			this.TUAmount = tUAmount;
			this.TaxSchedule = taxSchedule;
		}
		#region System Fields 
		//--系统字段,目前没有.EntityData上有相应的字段,用于保存相关的实体状态信息,DTO上没有状态信息.	
		#endregion
		
		#region DTO Properties 
	
		

		/// <summary>
		/// 含税价
		/// 应付单行AITDTO.Misc.含税价
		/// </summary>
		private System.Decimal m_taxPrice ;
		[DataMember(IsRequired=false)]
		public System.Decimal TaxPrice
		{
			get	
			{	
				return m_taxPrice ;
			}
			set	
			{	
				m_taxPrice = value ;	
			}
		}
			
		

		/// <summary>
		/// 收入确认方式
		/// 应付单行AITDTO.Misc.收入确认方式
		/// </summary>
		private System.Int16 m_rCCompletMode ;
		[DataMember(IsRequired=false)]
		public System.Int16 RCCompletMode
		{
			get	
			{	
				return m_rCCompletMode ;
			}
			set	
			{	
				m_rCCompletMode = value ;	
			}
		}
			
		

		/// <summary>
		/// 立账数量
		/// 应付单行AITDTO.Misc.立账数量
		/// </summary>
		private System.Decimal m_pUAmount ;
		[DataMember(IsRequired=false)]
		public System.Decimal PUAmount
		{
			get	
			{	
				return m_pUAmount ;
			}
			set	
			{	
				m_pUAmount = value ;	
			}
		}
			
		

		/// <summary>
		/// 不含税价
		/// 应付单行AITDTO.Misc.不含税价
		/// </summary>
		private System.Decimal m_nonTaxPrice ;
		[DataMember(IsRequired=false)]
		public System.Decimal NonTaxPrice
		{
			get	
			{	
				return m_nonTaxPrice ;
			}
			set	
			{	
				m_nonTaxPrice = value ;	
			}
		}
			
		

		/// <summary>
		/// 行号
		/// 应付单行AITDTO.Misc.行号
		/// </summary>
		private System.Int16 m_lineNum ;
		[DataMember(IsRequired=false)]
		public System.Int16 LineNum
		{
			get	
			{	
				return m_lineNum ;
			}
			set	
			{	
				m_lineNum = value ;	
			}
		}
			
		

		/// <summary>
		/// 料品
		/// 应付单行AITDTO.Misc.料品
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfItemInfoData m_item ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfItemInfoData Item
		{
			get	
			{	
				return m_item ;
			}
			set	
			{	
				m_item = value ;	
			}
		}
			
		

		/// <summary>
		/// 备注
		/// 应付单行AITDTO.Misc.备注
		/// </summary>
		private System.String m_memo ;
		[DataMember(IsRequired=false)]
		public System.String Memo
		{
			get	
			{	
				return m_memo ;
			}
			set	
			{	
				m_memo = value ;	
			}
		}
			
		

		/// <summary>
		/// 实体扩展字段
		/// 应付单行AITDTO.Misc.实体扩展字段
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData m_descFlexField ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData DescFlexField
		{
			get	
			{	
				return m_descFlexField ;
			}
			set	
			{	
				m_descFlexField = value ;	
			}
		}
			
		

		/// <summary>
		/// 价税合计
		/// 应付单行AITDTO.Misc.价税合计
		/// </summary>
		private System.Decimal m_totalMoney ;
		[DataMember(IsRequired=false)]
		public System.Decimal TotalMoney
		{
			get	
			{	
				return m_totalMoney ;
			}
			set	
			{	
				m_totalMoney = value ;	
			}
		}
			
		

		/// <summary>
		/// 税额
		/// 应付单行AITDTO.Misc.税额
		/// </summary>
		private System.Decimal m_tax ;
		[DataMember(IsRequired=false)]
		public System.Decimal Tax
		{
			get	
			{	
				return m_tax ;
			}
			set	
			{	
				m_tax = value ;	
			}
		}
			
		

		/// <summary>
		/// 未税金额
		/// 应付单行AITDTO.Misc.未税金额
		/// </summary>
		private System.Decimal m_nonTax ;
		[DataMember(IsRequired=false)]
		public System.Decimal NonTax
		{
			get	
			{	
				return m_nonTax ;
			}
			set	
			{	
				m_nonTax = value ;	
			}
		}
			
		

		/// <summary>
		/// 应付单AITDTO
		/// 应付单行AITDTO.Misc.应付单AITDTO
		/// </summary>
		private ufida.u9.ait.openapi.APBillAITDTOData m_aPBillAITDTO ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.APBillAITDTOData APBillAITDTO
		{
			get	
			{	
				return m_aPBillAITDTO ;
			}
			set	
			{	
				m_aPBillAITDTO = value ;	
			}
		}
			
		

		/// <summary>
		/// 交易单位数量
		/// 应付单行AITDTO.Misc.交易单位数量
		/// </summary>
		private System.Decimal m_tUAmount ;
		[DataMember(IsRequired=false)]
		public System.Decimal TUAmount
		{
			get	
			{	
				return m_tUAmount ;
			}
			set	
			{	
				m_tUAmount = value ;	
			}
		}
			
		

		/// <summary>
		/// 税组合
		/// 应付单行AITDTO.Misc.税组合
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_taxSchedule ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData TaxSchedule
		{
			get	
			{	
				return m_taxSchedule ;
			}
			set	
			{	
				m_taxSchedule = value ;	
			}
		}
			
		#endregion	

		#region Multi_Fields
																												
		#endregion 
	} 	
}
